﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAL
{
    public class Base
    {
        public static int GetTotalPages(int total_count, int rows)
        {

            int totalPages = 0;
            if (total_count % rows == 0)
            {
                totalPages = total_count / rows;
            }
            else totalPages = total_count / rows + 1;
            return totalPages;
        }
    }
}
